package com.wang.scacodetest.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName user_token
 */
@TableName(value ="user_token")
@Data
public class UserToken implements Serializable {
    /**
     * 唯一性
     */
    @TableId(value = "uuid")
    private String uuid;

    /**
     * 谁登录
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 登录时间
     */
    @TableField(value = "login_time")
    private LocalDateTime loginTime;

    /**
     * 创建时间 用于判断失效时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 0有效  1失效
     */
    @TableField(value = "state")
    private Integer state;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}